package com.sky.service;


import com.sky.annotation.AutoFill;
import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.enumeration.OperationType;
import com.sky.result.PageResult;

import java.util.List;

public interface DishService {

    @AutoFill(OperationType.INSERT)
    void addNewDish(DishDTO dishDTO);

    PageResult selectDishByPage(DishPageQueryDTO dishPageQueryDTO);

    @AutoFill(OperationType.UPDATE)
    void updateOneDish(DishDTO dishDTO);

    DishDTO selectOneDish(Long id);

    void deleteDishById(List<Integer> ids);

    void updateStatus(Integer status, Long id);

    List<DishDTO> selectDishByCategoryId(Long categoryId);
}
